package cn.itcast.service.impl;

import cn.itcast.service.IDemoService;
import cn.itcast.service.IDubboDemoService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * @Description :
 * @Auther : zj
 * @Date : 2019/1/17 10:14
 */
@Service
public class DemoServiceImpl implements IDemoService {

    @Reference(url = "dubbo://localhost:20880")
    public IDubboDemoService dubboDemoService;

    @Override
    public String test() {
        return dubboDemoService.helloDubbo();
    }
}
